﻿
function ChangDiv(uid, css, num, div) {
    var tabList = document.getElementById(uid).getElementsByTagName("li");
    for (i = 0; i < tabList.length; i++) {
        if (i == num) {

            tabList[i].className = css;

            document.getElementById("" + div + "" + i + "").style.display = "block";

        } else {

            tabList[i].className = "none";
            document.getElementById("" + div + "" + i + "").style.display = "none";
        }
    }

}

function ChangClass(uid, css, num) {
    var tabList = document.getElementById(uid).getElementsByTagName("li");

    for (i = 0; i < tabList.length; i++) {
        if (i == num) {

            tabList[i].className = css;
            document.getElementById("subNav" + i + "").style.display = "block";

        } else {
            tabList[i].className = "none";
            document.getElementById("subNav" + i + "").style.display = "none";

        }
    }

}